package com.relytosoft.mizar.media.display.api.pojo.query;

import com.baomidou.mybatisplus.annotation.TableField;
import com.relytosoft.mizar.media.common.utils.AesUtils;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * RotaPlayDetail
 *
 * @Author SunLi
 * @Date: 2022/4/15 11:57
 * @Version 1.0
 */
public class ChannelPlayDetailQuery implements Serializable {
    private static final long serialVersionUID = -676723910863013504L;
    /**
     * 通道ID
     */
    @ApiModelProperty(value = "通道ID")
    @TableField(exist = false)
    private Integer channelId;
    /**
     * 码流RTSP URL
     */
    @ApiModelProperty(value = "码流RTSP URL")
    @TableField(exist = false)
    private String streamRtspUrl;

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public String getStreamRtspUrl() {
        return streamRtspUrl;
    }

    public void setStreamRtspUrl(String streamRtspUrl) {
        this.streamRtspUrl = AesUtils.aesDeCode(streamRtspUrl);
    }

    @Override
    public String toString() {
        return "RotaPlayDetail{" +
                "channelId=" + channelId +
                ", playStreamUrl='" +  + '\'' +
                '}';
    }
}
